﻿@{
    ViewBag.Title = (ViewBag.source == 0 ? "术者列表" : "主刀医师");
}
@model List<zqdn.Web.ViewModels.HosCenter.HosAppointViewModel>
<div class="wrap">
    <div class="doctor-assist-page common-list">
        @Html.Hidden("source", (int)ViewBag.source)
        
        @if (Model.Count == 0)
        {
            <p style='text-align:center;margin-top:10px;'>暂无信息！</p>
        }
        @foreach (var item in Model)
        {
            <div class="list-data">
                <input type="hidden" value="@item.ID" class="uid" />
                <ul>
                    <li class="items" id="left">
                        <div>
                            <img class="list-left-img" src="~/content/images/doc-assist.png" alt="术者列表">
                        </div>
                    </li>
                    <li class="items" id="center">
                        <div class="nocenter">
                            <p class="title">@item.Name</p>
                            <p class="user-message">
                                <span class="m1"></span>
                                <span class="m3">@item.HosName</span>
                            </p>
                            <p class="view-message">
                                <span class="m1"></span>
                                <span class="m2">擅长</span>
                                <span class="m3">@item.Domain</span>
                            </p>
                        </div>
                    </li>
                    @*@if (ViewBag.flag == 0) {*@ 
                    <li class="items" id="right"></li>
                    @*}*@
                </ul>

            </div>
        }


    </div>
</div>

@section scripts
{
    <script>
        $(function () {
            if ($("#source").val() == 0) {
                $(".list-data").on("click", function () {
                    location.href = "/HosCenter/DoctorGapTime/?uid=" + $(this).find(".uid").val() + ""
                });
            } else {
                $(".list-data").on("click", function () {
                    location.href = "/CommonCenter/ArticleList/?type=100&did=" + $(this).find(".uid").val() + "";
                });
            }
        });
    </script>
}